.class public Lcom/estrongs/android/pop/app/analysis/view/b;
.super Ljava/lang/Object;
.source "AnalysisLoadingManager.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/view/View;

.field private c:Lcom/estrongs/android/pop/app/analysis/view/a;

.field private d:Landroid/widget/PopupWindow;

.field private e:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/view/View;Z)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance p3, Landroid/os/Handler;

    invoke-direct {p3}, Landroid/os/Handler;-><init>()V

    iput-object p3, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->e:Landroid/os/Handler;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    .line 4
    iput-object p2, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->b:Landroid/view/View;

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/analysis/view/b;->e()V

    return-void
.end method

.method private a(I)I
    .locals 1

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result p1

    return p1
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/analysis/view/b;)Landroid/widget/PopupWindow;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->d:Landroid/widget/PopupWindow;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/analysis/view/b;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    return-object p0
.end method

.method static synthetic c(Lcom/estrongs/android/pop/app/analysis/view/b;)Lcom/estrongs/android/pop/app/analysis/view/a;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    return-object p0
.end method

.method private e()V
    .locals 4

    .line 1
    new-instance v0, Lcom/estrongs/android/pop/app/analysis/view/a;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/estrongs/android/pop/app/analysis/view/a;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    .line 2
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/view/b$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/analysis/view/b$b;-><init>(Lcom/estrongs/android/pop/app/analysis/view/b;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 3
    new-instance v0, Landroid/widget/PopupWindow;

    const/4 v1, -0x2

    invoke-direct {v0, v1, v1}, Landroid/widget/PopupWindow;-><init>(II)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->d:Landroid/widget/PopupWindow;

    .line 4
    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>()V

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->d:Landroid/widget/PopupWindow;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->d:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setTouchable(Z)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->d:Landroid/widget/PopupWindow;

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setOutsideTouchable(Z)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->d:Landroid/widget/PopupWindow;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f0c004f

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/PopupWindow;->setContentView(Landroid/view/View;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 7

    const/4 v0, 0x2

    new-array v1, v0, [I

    .line 2
    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v2, v1}, Landroid/view/View;->getLocationOnScreen([I)V

    const/4 v2, 0x0

    .line 3
    aget v3, v1, v2

    iget-object v4, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I

    move-result v4

    add-int/2addr v3, v4

    iget-object v4, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f0700f2

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v4

    add-int/2addr v3, v4

    const/4 v4, 0x1

    .line 4
    aget v1, v1, v4

    iget-object v4, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I

    move-result v4

    iget-object v5, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    invoke-virtual {v5}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v5

    const v6, 0x7f0700d0

    invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v5

    sub-int/2addr v4, v5

    div-int/2addr v4, v0

    add-int/2addr v1, v4

    .line 5
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->a:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    invoke-virtual {v0}, Landroid/app/Activity;->isFinishing()Z

    move-result v0

    if-nez v0, :cond_0

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->d:Landroid/widget/PopupWindow;

    iget-object v4, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v0, v4, v2, v3, v1}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->e:Landroid/os/Handler;

    new-instance v1, Lcom/estrongs/android/pop/app/analysis/view/b$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/analysis/view/b$a;-><init>(Lcom/estrongs/android/pop/app/analysis/view/b;)V

    const-wide/16 v2, 0x9c4

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/view/a;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method

.method public b()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/view/a;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/view/a;->b()V

    :cond_0
    return-void
.end method

.method public c()Z
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/view/a;->c()Z

    move-result v0

    return v0
.end method

.method public d()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/view/a;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    const v1, 0x7f0700ec

    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/app/analysis/view/b;->a(I)I

    move-result v2

    .line 3
    invoke-direct {p0, v1}, Lcom/estrongs/android/pop/app/analysis/view/b;->a(I)I

    move-result v1

    const/16 v3, 0x13

    invoke-direct {v0, v2, v1, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->b:Landroid/view/View;

    check-cast v1, Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v1, v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/view/b;->c:Lcom/estrongs/android/pop/app/analysis/view/a;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/analysis/view/a;->d()V

    return-void
.end method
